package Server;

import com.sun.net.httpserver.HttpExchange;

public interface ServerService {

	public void init(String BUlib);
	
	// GET Method
	
	public void restoreFile(String userName,String fileName, int snapshot, HttpExchange exchange);
	
	public void listDir(String fileName, String userName, int snapshot, HttpExchange exchange);
	
	public void getSignature(String fileName, String userName, HttpExchange exchange);
	
	public void check(String fileName, String userName, HttpExchange exchange);
	
	// PUT Method
	
	public void createSnapshot(HttpExchange exchange, String userName, int snapshotID);
	
	public void backupWithSignature(HttpExchange exchange, String userName, String fileName, byte[] signature);
	
	public void backupWithData(HttpExchange exchange, String userName, String fileName);
	
	public void deleteSnapshot(HttpExchange exchange, String userName, int snapshotID);
}
